<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06_浮动布局</title>
    <style>
        .fu {
            width: 600px;
            background-color: #ff0;
            /* 生成BFC结界保护
            父元素会根据子元素浮动后的实际高度为自己填充高度
            解决父元素因所有子元素都浮动走以后产生的高度坍塌问题 */
            overflow: hidden;
        }
        .fu>div {
            width: 100px;
            height: 100px;
        }
        .z1 {
            background-color: rgba(255,0,0,1);
            /*float: right;*/
            float: left;
        }
        .z2 {
            background-color: #0f0;
            /*float: right;*/
            float: left;
        }
        .z3 {
            background-color: #00f;
            /*float: right;*/
            float: left;
        }
    </style>

</head>
<body>
<!-- .fu>.z*3 Tab -->
<div class="fu">
    <div class="z1">111</div>
    <div class="z2">222</div>
    <div class="z3">333</div>
</div>
</body>
</html>